#pragma once

#include "Resource.h"

class CUISettingsDlg : public CDialogImpl<CUISettingsDlg>
{
public:
	CUISettingsDlg(bool bModal = true);

	enum { IDD = IDD_SETTINGS };

	BEGIN_MSG_MAP(CUISettingsDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDOK, OnOkCancel)
		COMMAND_ID_HANDLER(IDCANCEL, OnOkCancel)
		COMMAND_ID_HANDLER(IDC_BUTTON1, OnBtnClick1)
	END_MSG_MAP()

private:
	LRESULT OnInitDialog(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnOkCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	LRESULT OnBtnClick1(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);

	void OnFinalMessage(HWND) override;

	bool m_bModal;
};
